<!DOCTYPE html>
<html>
<head>
    <% include ../common/meta.ejs %>
    <% include ../common/public.ejs %>
</head>
<body>
<% include ../common/header.ejs %>
<div class="container">
    <div class="dolphin-row main page-content">
        <div class="page-header">
            <h5 class="content-title">属性维护</h5>
            <div class="pull-left">
                <ul class="fl">
                    <li>
                        <button class="btn btn-block btn-info newData"><i class="fui-plus-circle icon-menu"></i>
                            <span>新建属性</span>
                        </button>
                    </li>
                </ul>
            </div>
        </div>

        <div class="queryCondition">
            <form class="query-form">
                <div class="row">
                    <div class="col-md-3">
                        <label>属性名称：</label>
                        <input type="text" placeholder="名称模糊查询" name="name_like">
                    </div>
                    <div class="col-md-3">
                        <label>编码编码：</label>
                        <input type="text" placeholder="编码模糊查询" name="code_like">
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-2">
                        <button class="btn btn-sm btn-inverse btn-query" type="button">搜索</button>
                    </div>
                </div>
            </form>
        </div>

        <div id="dataList" class="box-content"></div>
    </div>
</div>

<div class="modal fade" id="dataModal" tabindex="-1" role="dialog" aria-labelledby="dataModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                <span class="modal-title">属性维护</span>
            </div>
            <div class="modal-body">
                <form class="form-horizontal edit-form">
                    <input type="hidden" class="form-control" name="id">
                    <div class="form-group">
                        <label class="col-md-offset-1 col-md-2 control-label">属性名称</label>
                        <div class="col-md-6">
                            <input class="form-control" name="name" type="text" dol-validate="required">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-offset-1 col-md-2 control-label">属性编码</label>
                        <div class="col-md-6">
                            <input class="form-control" name="code" type="text" dol-validate="required">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-offset-1 col-md-2 control-label">属性类型</label>
                        <div class="col-md-6">
                            <select dol-validate="required" name="fieldType" class="form-control"
                                    id="field-Type" data-original-title="" title="">
                                <option value="">--请选择--</option>
                                <option value="NUMBER">数值型</option>
                                <option value="ENUM">枚举型</option>
                                <option value="MEDIA">多媒体</option>
                                <option value="STRING">字符型</option>
                                <option value="INTEGER">整数型</option>
                                <option value="RICHTEXT">富文本</option>
                            </select>
                        </div>
                    </div>
                    <div id="extendInfo" class="default-hidden"></div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary modelSave">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<% include ../common/footer.ejs %>
</body>
</html>
